<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - (Vue.com)</title>
<!-- <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script> -->
<script src="../js/vue.js"></script>
</head>
<body>
<div id="app">
  <p>单个复选框：</p>
  <input type="checkbox" id="checkbox" v-model="checked">
  <label for="checkbox">{{ checked }}</label>
	
  <p>多个复选框：</p>
  <input type="checkbox" id="baidu" value="Baidu" v-model="checkedNames">
  <label for="runoob">baidu</label>
  <input type="checkbox" id="google" value="Google" v-model="checkedNames">
  <label for="google">Google</label>
  <input type="checkbox" id="taobao" value="Taobao" v-model="checkedNames">
  <label for="taobao">taobao</label>
  <input type="checkbox" id="bilibi" value="Bilibi" v-model="checkedNames">
  <label for="taobao">bilibi</label>
  <br>
  <span>选择的值为: {{ checkedNames }}</span>
  <br>
  <p>select列表：</p>
  <select v-model="selected" name="fruit">
      <option value="">选择一个名著</option>
      <option value="西游记.mp4">西游记</option>
      <option value="红楼梦.mp4">红楼梦</option>
      <option value="水浒传.mp4">水浒传</option>
      <option value="三国演义.mp4">三国演义</option>
  </select>
  <div id="output">
      选择的名著是：{{selected}}
  </div>

</div>

<script>
new Vue({
  el: '#app',
  data: {
	checked : false,
    checkedNames: [],
    selected: ''
  }
})
</script>
</body>
</html>